package com.shqcjd.sinopecdemomobile.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.sinopecdemomobile.R;
import com.shqcjd.sinopecdemomobile.model.pojo.EquipmentGroupBean;

import java.util.List;

public class EquipmentGroupStandardItemAdapter extends BaseQuickAdapter<EquipmentGroupBean.EquipmentStandardBean.EquipmentTypePartBean.EquipmentTypePartItemBean,BaseViewHolder> {
    private Context context;
    public EquipmentGroupStandardItemAdapter(@Nullable List<EquipmentGroupBean.EquipmentStandardBean.EquipmentTypePartBean.EquipmentTypePartItemBean> data, Context context) {
        super(R.layout.item_equipment_group_standard_item, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, EquipmentGroupBean.EquipmentStandardBean.EquipmentTypePartBean.EquipmentTypePartItemBean item) {
        helper.setText(R.id.tv_item_equipment_group_standard, item.standard);
        helper.setText(R.id.tv_item_equipment_group_standard_name, item.equipment_part_item_name);
    }

}
